package com.weiqiao.report.distributior.repository.impl;

import com.weiqiao.base.dao.impl.BaseMongoDaoImpl;
import com.weiqiao.report.distributior.repository.IDistributionRepository;
import org.bson.conversions.Bson;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("ReportDistributionRepositoryImpl")
public class DistributionRepositoryImpl extends BaseMongoDaoImpl implements IDistributionRepository {

    private final static String collectionName = "";

    @Override
    public List<String> getdistributionList(Bson filter, Bson sort, int skip, int limit, int company_id) {
        return super.findFilterSortSkipLimit(collectionName + company_id, filter, sort, skip, limit);
    }

    @Override
    public int countFruiter(int company_id, Bson filter) {
        return super.statististics(collectionName + company_id, filter);
    }
}
